package com.merlin.security.demo.web.dto;

import java.util.Date;

import javax.validation.constraints.Past;

import com.merlin.security.demo.web.validator.IsIdCard;

import lombok.Data;

@Data
public class User {
	
	private Integer id;
	
	private String username;
	
	private String password;
	
	@Past(message = "生日必须是过去的日期")
	private Date birthday;
	
	@IsIdCard(message = "身份证号码必须是大陆的18位或者15位，或者是港澳台的10位")
	private String idCard;

}
